package game.coord;


//cell with 4 neighbors
public abstract class VonNeumannCell<TYPE extends VonNeumannCell<?>>
{
 // neighbors
    private TYPE top;
    private TYPE left;
    // this
    private TYPE right;
    private TYPE bottom;
    
    public TYPE getTop()
    {
        return top;
    }

    public void setTop(TYPE top)
    {
        this.top = top;
    }

    public TYPE getLeft()
    {
        return left;
    }

    public void setLeft(TYPE left)
    {
        this.left = left;
    }

    public TYPE getRight()
    {
        return right;
    }

    public void setRight(TYPE right)
    {
        this.right = right;
    }

    public TYPE getBottom()
    {
        return bottom;
    }

    public void setBottom(TYPE bottom)
    {
        this.bottom = bottom;
    }
}
